package imooc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Value("${name}")
    private String name;

    @Value("${myWords}")
    private String myWords;

    @GetMapping("name")
    public String getName(){
        return name;
    }


    @GetMapping("myWords")
    public String getMyWords() {
        return myWords;
    }
}
